<template>
	<view>
		<my-login v-if="!token"></my-login>
		<my-userinfo v-else></my-userinfo>
	</view>
</template>

<script setup>
import {onLoad} from '@dcloudio/uni-app';
import { computed } from 'vue';
import { cartMixin } from '@/mixins/tabbar-badge.js';
const {cartStore} = cartMixin.setup();
import { useUserStore } from '@/store/user';
const userStore = useUserStore()
const token = computed(()=>{
	return userStore.token
})
</script>

<style lang="scss" scoped>

</style>
